package com.qf.service.impl;

import com.qf.dao.VisitorsDao;
import com.qf.pojo.Visitors;
import com.qf.pojo.resp.BaseResult;
import com.qf.service.VisitorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.xml.ws.Action;

@Service
public class VisitorsServiceImpl implements VisitorsService {
    @Resource
    VisitorsDao visitorsDao;
        BaseResult baseResult = new BaseResult();

    @Override
    public BaseResult addVisitors(Visitors visitors) {
        Integer integer = visitorsDao.addVisitors(visitors);
        baseResult.setCode(integer);
        baseResult.setInfo("成功");
        baseResult.setData(visitors);
        return baseResult;
    }
}
